<template>
  <view class="demand b-w">
    <view class="flex-x-c">
      <u-avatar class="avator" size="40" :src="info.avatar"></u-avatar>
      <view class="name">
        <view class="flex-x-c">
          <view class="user-name">{{ info.name || info.enterpriseName }}</view>
          <u-icon name="arrow-right" size="13"></u-icon>
        </view>
        <view class="icon" v-if="info.major">
          <u--text :text="info.major" size="24rpx" color="#ffffff"></u--text>
        </view>
      </view>
    </view>
    <view class="intro line-2">{{ info.provideDirection || info.content }}</view>
    <!-- <view class="phone">联系电话：1357986353</view>
		<view class="label">专家</view> -->
  </view>
</template>

<script>
export default {
  props: {
    info: {
      type: Object,
      default: () => {},
    },
  },
}
</script>

<style lang="scss" scoped>
.demand {
  border-radius: 20rpx;
  padding: 40rpx;
  position: relative;
  box-shadow: 0px 1px 5px 0px rgba(0, 0, 0, 0.1);
  .avator {
    width: 150rpx;
    height: 150rpx;
  }
  .name {
    margin-left: 20rpx;
    .user-name {
      margin-right: 20rpx;
    }
  }
  .icon {
    display: inline-block;
    margin-top: 8rpx;
    background-color: #3c9cff;
    border-radius: 6rpx;
    padding: 0 12rpx;
    line-height: 28rpx;
  }
  .label {
    position: absolute;
    bottom: 30rpx;
    color: $uni-color-primary;
    right: 40rpx;
    font-size: 32rpx;
  }
}
.intro {
  margin-top: 36rpx;
  line-height: 46rpx;
}
.phone {
  margin-top: 20rpx;
}
</style>
